package ebj.common.collection;
public class TestMyHashSet {
	public static void main(String[] args) {
		MyHashSet myHashSet = new MyHashSet();
		myHashSet.add("hello");
		myHashSet.add("hey");
		myHashSet.add("apply");
		myHashSet.add("你好");
		myHashSet.add("你是谁");
		myHashSet.add("cat");
		myHashSet.add("dog");
		myHashSet.add("cat");
		myHashSet.add("你好");

		System.out.println("包含'你好'? " + myHashSet.contains("你好"));
		System.out.println("元素个数: " + myHashSet.size());
		myHashSet.display();
		myHashSet.remove("hello");
		System.out
				.println("*****************after remove 'hello'**********************");
		myHashSet.display();
		System.out.println("元素个数: " + myHashSet.size());
	}
}